<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div region="center" style="padding:5px;" border="false">
	<table id="branchList">
		<thead>
			<tr>
				<th data-options="field:'branchId',width:50,hidden:true">ID</th>
				<th data-options="field:'branchName',width:200">网点名称</th>
				<th data-options="field:'branchShortAddress',width:200">短信通知地址</th>
				<th data-options="field:'linkMan',width:100">联系人</th>
				<th data-options="field:'linkNum',width:100">联系号码</th>
				<th data-options="field:'branchProvince',width:100">省份</th>
				<th data-options="field:'branchCity',width:100">城市</th>
				<th data-options="field:'branchAddress',width:200">地址</th>
				<th data-options="field:'smsPlatform',width:100,formatter: function(value,row,index){
		        			if(value){
								switch(value){
									case 0:return '云蜚短信平台1';
									case 1:return '云蜚短信平台1';
									case 2:return '云蜚短信平台1';
									default : break;
								}
							}
							return '未知';
		        		}">短信平台</th>
				<th data-options="field:'agent',width:50,hidden:true,formatter: function(value,row,index){
		        			if(value){
		        				return value.userSmsTemplate;
							}
							return '未知';
		        		}">短信模板</th> 
			</tr>
		</thead>

		<%--
		<tbody>
			<s:iterator value="branchs" status="st">
				<tr>
					<td><s:property value="branchId" /></td>
					<td><s:property value="branchName" /></td>
					<td><s:property value="branchProvince"/></td>
					<td><s:property value="branchCity"/></td>
					<td><s:property value="agent.name"/></td>
					<td>
					<s:if test="isAcross==0">不支持</s:if>
					<s:elseif test="isAcross==1">支持</s:elseif>
					<s:else>=_+</s:else>
					</td>
					<td class="center "> 
						<a href="getBranchAgentList?branchID=<s:property value="branchId" />&agentID=<s:property value="agent.id"/>">
							网点详情
						</a>|
						<a href="getBranchById?branchID=<s:property value="branchId" />">
							修改
						</a>|
						<a href="deleteBranch?branchID=<s:property value="branchId" />">
							删除
						</a> |
						<a href="getAllExpense?branchID=<s:property value="branchId" />&agentID=<s:property value="agent.id"/>">
							查询授权快递网点详情
						</a> 
					</td>
				</tr>
			</s:iterator>
		</tbody>
		--%>
	</table>
</div>
<!-- 增加 -->
<div id="branch_addDialog"></div>
<!-- 修改 -->
<div id="branch_updateDialog"></div>
<script type="text/javascript" src="<%=path%>/js/system/branch/branch.js"></script>
